<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>写文章</title>
</head>
<body>
	<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
	<script type="text/javascript" src="/bootstrap/js/jquery.js"></script>
	<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="/css/article.css">
		
		<!-- <div class="contents "> -->
		
			<div class="container article ">
				<div class=" main">
					<div class="col-md-3 title_left"><h3>者也</h3></div>
					<div class="col-md-3 title_zhong"><h3>文章</h3></div>
					<div class="col-md-5 title_right">
						<h4>我就是我,是颜色不一样的烟火</h4>
					</div>
				</div>

				<div class="col-md-8 ">						
    				<script type="text/javascript" charset="utf-8" src="/js/utf8-php/lang/zh-cn/zh-cn.js"></script>
						
						<!-- 加载编辑器的容器 -->
						<script id="container" name="content"  type="text/plain">
 
						</script>
						<!-- 配置文件 -->
						<script type="text/javascript" src="/js/utf8-php/ueditor.config.js"></script>
						<!-- 编辑器源码文件 -->
						<script type="text/javascript" src="/js/utf8-php/ueditor.all.js"></script>
						<!-- 实例化编辑器 -->

						<form action="/article/tijiao" method="post" enctype="multipart/form-data">
							<div class="fileInputContainer  col-md-12" >
									<span class="glyphicon glyphicon-camera" id="file_tp"></span>
       							 <input class="fileInput" type="file" name="pic"  />
    						</div>
							
							<input id="inputtitle" type="text" name="title" placeholder='请输入标题'>

						    <textarea name="contents" id="myEditor" class="contents">
						    
						    </textarea>  
						    <!-- <input type="hidden" name="_token"         value="{csrf_token()}"/> -->
							{{ csrf_field() }}
							<!-- 标题 警告提醒 -->
							<div class="alert alert-danger" id= "warningtitle" role="alert">
								<strong>您好</strong>,你还没有为你的文章定义标题. 
							</div>
							<!-- 内容 警告提醒 -->
							<div class="alert alert-danger" id= "warningcontent" role="alert">
								<strong>您好</strong>,你还没有为你的文章书写内容.. 
							</div>
								
								@if(session('error'))
								<div class="alert alert-warning alert-dismissible" id= "warningcg" role="alert">
									<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
								<strong>您好</strong>
								    {{session('error')}}
								</div>
								@endif

						    <div class="btn btn-success tj_yi">提交</div>
				</div>
				<div class="col-md-4">
					

					<div class=" guanzhu_dv">
							<h3>亲,请点击选择你发布文章的主题哦</h3>
							@for($i=0; $i < $len ; $i++)
								<div class="radio">
 								 	<label>
									<input type="radio"   name="tid_name"  checked value="{{$row[$i]}}">{{ $row[$i] }}
  									</label>
								</div>
							@endfor
							<br><br>
							<input class="btn btn-success tj_er" type="submit"  value="发布">
					</div>
				</div>	
			</div>
			</form>
			
			<script type="text/javascript">

			    var editor = new UE.ui.Editor(); 

			    editor.render("myEditor");  
			</script>
		<!-- </div> -->
		<script src="/js/article.js"></script>
</body>
</html>